x86/mm: update max_mapped_pfn on MMIO mappings too.
authorTim Deegan <tim@xen.org>
Thu, 16 Aug 2012 13:31:09 +0000 (14:31 +0100)
committerTim Deegan <tim@xen.org>
Thu, 16 Aug 2012 13:31:09 +0000 (14:31 +0100)
commitb6f3a3cbf014b7adb992ffa697aca568ff7a7fcb
tree0a86a7ab80ffc05eb32025c9f25483d3f7f94568
parent9663bd3f47c3a58a3ab4cd21d9ffc1cdc96b6d56
x86/mm: update max_mapped_pfn on MMIO mappings too.

max_mapped_pfn should reflect the highest mapping we've ever seen of
any type, or the tests in the lookup functions will be wrong.  As it
happens, the highest mapping has always been a RAM one, but this is no
longer the case when we allow 64-bit BARs.

Reported-by: Xudong Hao <xudong.hao@intel.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c